package com.example.hcd.datamanage;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

import android.content.Context;

public class PurchaseData {

	private Context context; 
	//標題
	private String title ="";
	//金額
	private String amount="0";
	//採購商品信息
	private String reason;
	//供應商名稱
	private String supplierName;
	//供應商銀行賬號
	private String bankCardId;
	//所屬項目
	private String projectName;
	//供應商開戶銀行
	private String bankName;
	//采购类型
	private String purchaseType;
	//采购类型名称
	private String purchaseTypeName;
	//业务ID
	private String ID;
	//采购时间
	private String purchaseTime;
	//流程ID
	private String processInstanceId;
	//用户姓名
	private String userName;
	//流程状态
	private String processStatus;
	//流程状态值
	private String processStatusValue;
	//采购人和部门
	private String applicant;
	
	//是否有发票
	private String ishasReceipt;
	
	private String imgPrefix;

	public String getUseSeal() {
		return useSeal;
	}

	public void setUseSeal(String useSeal) {
		this.useSeal = useSeal;
	}

	private String useSeal;
		
	
	public String getImgPrefix()
	{
		return imgPrefix;
	}
	public void setImgPrefix(String imgPrefix)
	{
		this.imgPrefix = imgPrefix;
	}
	private ArrayList<ImageFileType> imageList = new ArrayList<ImageFileType>();
	
	public PurchaseData(Context context)
	{
		this.context = context;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	public String getBankCardId() {
		return bankCardId;
	}
	public void setBankCardId(String bankCardId) {
		this.bankCardId = bankCardId;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getPurchaseType() {
		return purchaseType;
	}
	public void setPurchaseType(String purchaseType) {
		this.purchaseType = purchaseType;
	}
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public String getPurchaseTime() {
		if(purchaseTime==null||purchaseTime.equals(""))
		{
			return "";
			
		}
		
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		long time = Long.parseLong(purchaseTime);
		return mFormat.format(new Date(time));
	}
	public void setPurchaseTime(String purchaseTime) {
		this.purchaseTime = purchaseTime;
	}
	public String getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getProcessStatus() {
		return processStatus;
	}
	public void setProcessStatus(String processStatus) {
		this.processStatus = processStatus;
	}
	public String getProcessStatusValue() {
		return processStatusValue;
	}
	public void setProcessStatusValue(String processStatusValue) {
		this.processStatusValue = processStatusValue;
	}
	public String getApplicant() {
		return applicant;
	}
	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}
	public String getPurchaseTypeName() {
		return purchaseTypeName;
	}
	public void setPurchaseTypeName(String purchaseTypeName) {
		this.purchaseTypeName = purchaseTypeName;
	}
	public ArrayList<ImageFileType> getImageList() {
		return imageList;
	}
	public void setImageList(ArrayList<ImageFileType> imageList) {
		this.imageList = imageList;
	}
	public String getIshasReceipt() {
		return ishasReceipt;
	}
	public void setIshasReceipt(String ishasReceipt) {
		this.ishasReceipt = ishasReceipt;
	}
	
}
